﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

namespace ShopOnline.Controls
{
    public class CustomPanel : Panel
    {
        string title;

        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        public override void RenderControl(System.Web.UI.HtmlTextWriter writer)
        {
            if (Visible)
            {
                string html = "<div class='col-leftsidebar'><div class='sidebar-block'><div class='corners-top'><div><div></div></div></div><div class='border-left'><div class='border-right'><div class='block-title'><strong><span>" + title + "</span></strong><div class='block-content'>";
                writer.Write(html);
                base.RenderControl(writer);
                html = "</div></div></div></div><div class='corners-bot'><div><div></div></div></div></div></div>";
                writer.Write(html);
            }
        }
    }
}